{% macro if_active(endpoint) %}
    {{ "menu-item-active" if request.path == url_for(endpoint) else "" }}
{% endmacro %}